<?php
namespace app\mouth\common;
use think\Validate;
class OrderValidate extends Validate{
    protected $rule =   [
        'ma_id'              =>'number|require',
        'mobile'             =>'require|require',
        'ma_name'            => 'require',
        'tradename'          => 'require',
        'vs_type'            => 'require',
        'vs_picture'         => 'require',
        'price'              => 'require',
        'openid'             => 'require',
        'od_goodsid'         => 'require',
    ];
    protected $message  =   [
        'ma_id.number'          => '必须为整数',
        'ma_id.require'         => '缺少店铺id',
        'number.number'         => '必须为整数',
        'number.require'        => '缺少数量',
        'ma_name'               => '缺少店铺名称',
        'tradename'             => '缺少商品名称',
        'vs_type'               => '缺少分类',
        'vs_picture'            => '缺少图片',
        'price'                 => '缺少单价',
        'openid'                => '缺少用户openid',
        'od_goodsid'            => '缺少商品id',
    ];
}
